<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  <link rel="stylesheet" href="css/common.css?v=1.0.0" />
  <link rel="stylesheet" href="css/main.css?v=1.0.0">
  <script src="js/rem.js"></script>
  <script src="js/zepto.js"></script>
  <title>财富中心</title>
  <style>
    .tip-model {
      display: none
    }

    .load-container {
      display: none
    }
  </style>
</head>

<body>
  <!-- 均放在body的下一级  -->
  <!-- 加载框 -->
  <div class="load-container load4">
    <div class="loader"></div>
  </div>
  <button>点击我出提示框</button>
  <button>点击我出加载框</button>
  <!-- 提示框  (确定或者取消按钮可以是一个或者两个,如果是一个就是直接居中的,两个占满)-->
  <div class="tip-model">
    <div class="tip-con">
      <div class="tip-text">
        <p class="tip-title">一个弹出框</p>
        <p class="tip-des">你确定要做该操作吗</p>
      </div>
      <div class="tip-btn">
        <span class="tip-y">是</span>
        <span class="tip-n">否</span>
      </div>
    </div>
  </div>
</body>

</html>
<script>
  $('button').eq(0).click(function () {
    $('.tip-model').show()
    $('.load-container').hide()
  })
  $('button').eq(1).click(function () {
    $('.load-container').show()
    $('.tip-model').hide()
  })
  $('.tip-y').click(function () {
    console.log('点击了是')
    $('.tip-model').animate({
      opacity: 0
    }, 300, function () {
      $('.tip-model').hide(300)
      // alert('keyi')
    })
  })
  $('.tip-n').click(function () {
    alert('点击了否')
    $('.tip-model').hide()
  })
</script>